package clids.ex2.orders;

import java.util.LinkedList;
import java.util.TreeSet;

public class FileOrder implements OrderInterface {

	//returns treeSet by file name order
	public TreeSet<String> orderFiles(LinkedList<String> listFilter) {
		
		TreeSet<String> tree = new TreeSet<String>(new OrderFileComparator());
		for (String el : listFilter) {
			tree.add(el);
		}
		
		return tree;
	}
}
